package com.shd.edanpei.ui.activity;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.shd.edanpei.util.ToastUtil;

/**
 * Created by mc on 2018/11/13.
 * yang-wen-wen
 */

public class MyBroadcast extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String name = intent.getStringExtra("name");
        ToastUtil.showToast("收到了" + name + "广播");
    }
}
